<?php
/**
 * Created by PhpStorm.
 * User: MCAT
 * Date: 2018/11/6
 * Time: 16:19
 */

namespace app\api\controller;


use think\Controller;

class Datasource extends Controller
{
    public function selectBtn(){
        $area = db('area')->select();
        $style = db('type')->select();
        $type = db('type')->select();
        if ($area&&$style&&$type){
            return json(['data'=>['area'=>$area,'style'=>$style,'type'=>$type],'code'=>200,'msg'=>'获取按钮成功']);
        }else{
            return json(['data'=>['area'=>$area,'style'=>$style,'type'=>$type],'code'=>200,'msg'=>'基础信息待添加']);
        }
    }

}